package com.xmg.p2p.base.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * lcd  2020/5/19
 * Description:基础审核对象
 */
@Getter
@Setter
abstract public class BaseAuditDomain extends BaseDomain {
    public static final int STATE_NORMAL = 0;// 正常
    public static final int STATE_AUDIT = 1;// 审核通过
    public static final int STATE_REJECT = 2;// 审核拒绝

    public String remark;// 审核备注
    public int state;// 状态
    public Logininfo applier;// 申请人;
    public Logininfo auditor;// 审核人
    public Date applyTime;// 申请时间
    public Date auditTime;// 审核时间

    public String getStateDisplay() {
        switch (state) {
            case STATE_NORMAL:
                return "待审核";
            case STATE_AUDIT:
                return "审核通过";
            case STATE_REJECT:
                return "审核拒绝";
            default:
                return "";
        }
    }
}
